home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 012a / fac161.zip / FAC.DOC < prev    next >
Text File  |  1991-11-18  |  78KB  |  1,621 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                           Find Area Code (FAC), Version 1.61
  16.                         Copyright 1990-91, All Rights Reserved
  17.  
  18.                           Developed and Marketed as Shareware
  19.                                  by Michael K. Molloy
  20.                                  Mountain Data Systems
  21.                                8531 East Dry Creek Place
  22.                                  Englewood, CO  80112
  23.                                 CompuServe: 72737,3237
  24.  
  25.  
  26.                                  _______
  27.                             ____|__     |                (R)
  28.                          --|       |    |-------------------
  29.                            |   ____|__  |  Association of
  30.                            |  |       |_|  Shareware
  31.                            |__|   o   |    Professionals
  32.                          -----|   |   |---------------------
  33.                               |___|___|    MEMBER
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.                        D I S C L A I M E R  -  A G R E E M E N T
  43.  
  44.                  If you use Find Area Code (FAC), you must accept this
  45.               disclaimer of warranty:  "Find Area Code is supplied as is.
  46.               The author disclaims all warranties, expressed or implied,
  47.                    including, without limitation, the warranties of
  48.               merchantability and of fitness for any purpose. The author
  49.               assumes no liability for damages, direct or consequential,
  50.                    which may result from the use of Find Area Code."
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.         Find Area Code Documentation
  62.        ----------------------------
  63.  
  64.                              F I N D   A R E A   C O D E
  65.  
  66.                               D O C U M E N T A T I O N
  67.  
  68.                                   Table of Contents
  69.  
  70.                      o Introduction
  71.                      o What is Shareware?
  72.                      o The Association of Shareware Professionals (ASP)
  73.                      o Registration
  74.                      o What Do I Get for Registering, and Why Should I?
  75.                      o Installation
  76.                      o Using FAC from the DOS Command Line
  77.                      o The External Data File
  78.                      o Adding to the External Data File
  79.                      o Using FAC as a Popup TSR Program
  80.                      o What Are Swapping TSRs?
  81.                      o Advanced Options and Configuration
  82.                      o Error Conditions
  83.                      o Technical/Compatibility Notes
  84.                      o How to Reach the Author
  85.                      o Alternative Uses
  86.                      o Final Remarks
  87.                      o Quick Reference List of FAC Options
  88.  
  89.  
  90.  
  91.        Introduction
  92.        ------------
  93.  
  94.        Find Area Code (FAC) is an DOS utility which can quickly locate U.S.
  95.        and international telephone area codes or any other information you store
  96.        in its data files.  FAC performs its search using any part of an area
  97.        code, city, state, or country and shows matches almost instantly.  The
  98.        program can also do "fuzzy" searches, allowing you to use approximate,
  99.        sound-alike spellings to find matches.
  100.  
  101.        FAC uses an ASCII data file (FAC.DAT) which you can change, update, or
  102.        add to whenever you like.  There are more than 2000 United States,
  103.        Canadian, and international cities in the database.  Also, without
  104.        leaving the program, you can append data to an external data file, using
  105.        a default or file name you specify.
  106.  
  107.        You can run FAC from the DOS command line or you can make it memory
  108.        resident (also known as a popup or Terminate and Stay Resident [TSR]
  109.        program).  When you install FAC as a memory resident program, you can
  110.        choose between a small (7K RAM) swapping version with a very short (less
  111.        than 2 seconds) delay while it swaps into memory from disk, or you can
  112.        have an instantly available popup which requires more RAM.  The swapping
  113.        version can also (optionally) use Expanded Memory (EMS) for almost
  114.        instantaneous swapping.
  115.  
  116.        FAC displays the current date and time whenever the program is active.
  117.        The program automatically senses and supports all of the 25/43/50 line
  118.  
  119.        -------
  120.        Page 2
  121.         Find Area Code Documentation
  122.        ----------------------------
  123.  
  124.        modes used in most CGA/EGA/VGA video cards and pops up in the current
  125.        mode, using the screen most appropriately for that mode.  Also, FAC
  126.        senses the current color/monochrome mode and selects its colors
  127.        appropriately.  FAC's window can be moved around on the screen by using
  128.        the cursor keys.  You can also "zoom" FAC's window to use the full screen
  129.        or allow the program to do so whenever required.
  130.  
  131.  
  132.        What is Shareware?
  133.        ------------------
  134.  
  135.        Although you may not have paid anything to get this copy of FAC, it is
  136.        not a free program.  It is distributed on a "shareware" basis.  What's
  137.        that?
  138.  
  139.        Shareware is a form of distribution which gives users a chance to try
  140.        software before buying it. If you try a Shareware program and continue
  141.        to use it, you are expected to register.  Individual programs differ on
  142.        details -- some request registration while others require it, some
  143.        specify a maximum trial period.  With registration, you get anything
  144.        from the simple right to continue using the software to an updated
  145.        program with printed manual.
  146.  
  147.        Copyright laws apply to both Shareware and commercial software, and the
  148.        copyright holder retains all rights, with a few specific exceptions as
  149.        stated below.  Shareware authors are accomplished programmers, just like
  150.        commercial authors, and the programs are of comparable quality. (In both
  151.        cases, there are good programs and bad ones!)  The main difference is in
  152.        the method of distribution.  The author specifically grants the right to
  153.        copy and distribute the software, either to everyone, or to a specific
  154.        group.  For example, some authors require written permission before a
  155.        commercial disk vendor may copy their Shareware.
  156.  
  157.        Shareware is a distribution method, not a type of software.  You should
  158.        find software that suits your needs and pocketbook, whether it's
  159.        commercial or Shareware.  The Shareware system makes fitting your needs
  160.        easier, because you can try before you buy.  And because the overhead is
  161.        low, prices are low also.  Shareware has the ultimate money-back
  162.        guarantee -- if you don't use the product, you don't pay for it.
  163.  
  164.        Find Area Code (FAC) is a "shareware program" and is provided at no
  165.        charge to you for your evaluation.  Feel free to share it with your
  166.        friends, but please do not give it away altered or as part of another
  167.        system.  The essence of "user-supported" software is to provide personal
  168.        computer users with quality software without high prices, and yet to
  169.        provide incentive for programmers to continue to develop new products.
  170.  
  171.        Shareware works!  In addition to using many commercial products, I'm a
  172.        also a registered user of many high quality shareware products,
  173.        including:  PKWare's PKZIP, Vern Buerg's LIST, J.P. Software's 4DOS,
  174.        SemWare's QEdit Advanced, California Software Design's SHEZ, ECONO-SOFT's
  175.        Directory eXtended (DX), PC-*.*'s PC-TAX90, John Steed's Brother's
  176.        Keeper, and Falk Data System's Easy Format.  Please register all
  177.        shareware you continue to use.
  178.  
  179.        -------
  180.        Page 3
  181.         Find Area Code Documentation
  182.        ----------------------------
  183.  
  184.  
  185.        Please read the important information in the accompanying file,
  186.        LICENSE.DOC on the trial license for this program.  For more information
  187.        on shareware, please read the accompanying file SHR-WARE.DOC.
  188.  
  189.  
  190.        The Association of Shareware Professionals (ASP)
  191.        ------------------------------------------------
  192.  
  193.        Michael K. Molloy is a member of the Association of Shareware
  194.        Professionals (ASP).  ASP wants to make sure that the shareware principle
  195.        works for you.  If you are unable to resolve a shareware-related problem
  196.        with an ASP member by contacting the member directly, the ASP may be able
  197.        to help.  The ASP Ombudsman can help you resolve a dispute or problem
  198.        with an ASP member, but does not provide technical support for members'
  199.        products.  Please write to the ASP Ombudsman at 545 Grover Road, Muskegon
  200.        MI 49442-9427 or send a Compuserve message via CompuServe Mail to ASP
  201.        Ombudsman 70007,3536.
  202.  
  203.  
  204.        Registration
  205.        ------------
  206.  
  207.        If you find FAC useful and you continue to use it after a reasonable (45
  208.        days) trial period, you are required to make a registration payment of
  209.        $17.95 plus $2.00 shipping and handling (U.S.) to Michael K. Molloy.
  210.        The $17.95 registration fee will license one copy for use on any one
  211.        computer at any one time.  Even after registering, you have a money-back
  212.        guarantee for 90 days after purchase.
  213.  
  214.        You must treat a registered version of this software just like a book.
  215.        Just as a book cannot be read by two different persons at the same time,
  216.        this software may be used by any number of people and may be freely moved
  217.        from one computer location to another, as long as there is no possibility
  218.        of it being used in two different locations at the same time.
  219.  
  220.        Commercial users of Find Area Code (FAC) must register and pay for their
  221.        copies of the program within 45 days of first use or their license is
  222.        withdrawn.  For site-license information, see the file SITELICE.DOC.
  223.  
  224.        You are encouraged to pass (unregistered) copies of Find Area Code along
  225.        to your friends for evaluation.  Please encourage them to register their
  226.        copy if they find that they can use it.  All registered users will
  227.        receive a copy of the latest version of FAC when they register.
  228.  
  229.        Though the program is not "crippled" in anyway, this shareware version
  230.        shows an "Unregistered Shareware" status message in the lower right part
  231.        of the window to encourage you to register the program.  Also,
  232.        unregistered versions will give you a random (about 10% of the time),
  233.        bypassable registration reminder when you exit.  Naturally, the
  234.        registered version of the program doesn't have this.
  235.  
  236.        FAC is one of many area code finder utility programs, but I think you'll
  237.        find it is unsurpassed in speed, ease of use, convenience, and price.
  238.  
  239.        -------
  240.        Page 4
  241.         Find Area Code Documentation
  242.        ----------------------------
  243.  
  244.        As far as I know, it is the ONLY area code finder capable of being
  245.        installed as a 7K memory resident program.  Please fill out the included
  246.        registration order form (file REGISTER.DOC) and send in your registration
  247.        today.  You can send REGISTER.DOC to your printer by typing:
  248.  
  249.                      "COPY REGISTER.DOC PRN"  (without the quotes)
  250.  
  251.        and then pressing ENTER while at the MS-DOS prompt.
  252.  
  253.        To order FAC by normal surface mail, print and fill out the second
  254.        page of the REGISTER.DOC file, then mail it to the author with your
  255.        check, cash, or money order.  You can register FAC by credit card through
  256.        either Public (software) Library (PsL), a disk vendor, or Software
  257.        Excitement!, a CompuServe Electronic Mall vendor.  See REGISTER.DOC for
  258.        details.  Remember, both the above services are for credit card orders
  259.        only--not for support or other information!
  260.  
  261.  
  262.        What Do I Get for Registering, and Why Should I?
  263.        ------------------------------------------------
  264.  
  265.        When you register, you'll receive a disk with the latest version of the
  266.        program and a utility to stamp your serial number on all future versions
  267.        of the program.  Once you have registered FAC, you are always entitled
  268.        to the latest version at anytime.  You can download the latest version
  269.        from CompuServe, a BBS, or other computer service or I'll send you the
  270.        latest release for a small handling charge.  You can either send me a
  271.        SASE floppy mailer with your floppy, or just send me $5.00 and I'll
  272.        furnish the floppy, mailer, and postage.
  273.  
  274.        Here are some reasons why you should register:
  275.  
  276.          o You receive a CURRENT copy of the program, fresh from the author's
  277.            computer.
  278.  
  279.          o You get a LIFETIME license, meaning you're entitled to all future
  280.            versions/upgrades of FAC.
  281.  
  282.          o You get unlimited technical support via surface mail or electronic
  283.            mail.
  284.  
  285.          o You receive a special offer for a 1 year, discounted Shareware
  286.            Magazine subscription.
  287.  
  288.          o A free CompuServe IntroPak, which includes a $15.00 usage credit, is
  289.            available to Find Area Code registered users who do not yet subscribe
  290.            to CompuServe.  CompuServe will open the door for a whole new world
  291.            of information, services, and interesting people.  CompuServe is also
  292.            the best place to obtain technical support for FAC and other
  293.            high-quality shareware and commercial products.  This CompuServe
  294.            IntroPak (a $39.95 value) is provided to FAC registered users
  295.            compliments of CompuServe, Inc., and Mountain Data Systems.
  296.  
  297.  
  298.  
  299.        -------
  300.        Page 5
  301.         Find Area Code Documentation
  302.        ----------------------------
  303.  
  304.          o You have the author's ear when it comes to suggesting new features
  305.            and capabilities.  You may also be able to beta-test new versions of
  306.            the software before they are released to the general public.
  307.  
  308.          o You help increase competition in the software industry by keeping
  309.            prices low (shareware doesn't rely on expensive advertising).
  310.  
  311.          o Finally, you can be proud of the honesty and integrity you've shown
  312.            in registering the program and having participated in the Shareware
  313.            revolution.
  314.  
  315.  
  316.        Installation
  317.        ------------
  318.  
  319.        The Find Area Code distribution file is now created using PKZip's
  320.        Authenticity Verification (AV) feature.  This virtually guarantees BBSs
  321.        and users virus-free, unmodified files.  If after unzipping your
  322.        distribution files you don't see the message:
  323.  
  324.             "Authentic files Verified!   # EOA070   MICHAEL K. MOLLOY"
  325.  
  326.        you've have a modified distribution file.  Get another copy of the ZIP
  327.        file from me, CompuServe, another BBS, or another Disk Vendor.
  328.  
  329.        Once you've unzipped the distribution file, you can put Find Area Code's
  330.        files in any directory.  The FAC.EXE and FAC.DAT files can be anywhere on
  331.        the disk as long as you set a path to them with the DOS PATH statement.
  332.        Note that FAC.DAT need not be in the same directory as FAC.EXE as long
  333.        they are both on the PATH.  For example, if you put FAC's files in the
  334.        C:\UTIL directory, you would need to have a PATH statement in your
  335.        AUTOEXEC.BAT file which might look something like this:
  336.  
  337.                        PATH=C:\;C:\DOS;C:\MISC;C:\UTIL;C:\MENU
  338.  
  339.        You need at least 120K of disk space and 140K RAM to run the program from
  340.        the DOS prompt (non-TSR mode).  To use the program as a swapping TSR,
  341.        you must either have: an additional 265K of free disk space (hard disk
  342.        recommended); or 265K of expanded memory (EMS).
  343.  
  344.        Actually, FAC.EXE is the only you must have on your path.  If you are
  345.        running FAC from the same directory where FAC.DAT resides, FAC.DAT need
  346.        not be on your PATH.
  347.  
  348.        ------------------ For Registered Users Only -------------------------
  349.  
  350.        When you register FAC, you'll receive an additional program which is
  351.        used to "stamp" a registered serial number on your copy (and all future
  352.        copies) of your program.  Stamping the serial number also removes the
  353.        "Unregistered Shareware" reminder in the lower right part of the window.
  354.  
  355.        To run this program, type "STAMP-SN" at the DOS prompt, and press
  356.        ENTER.  You'll be asked for the name of the EXE file to modify (since
  357.        FAC.EXE could be renamed to whatever you want).  If you're using
  358.  
  359.        -------
  360.        Page 6
  361.         Find Area Code Documentation
  362.        ----------------------------
  363.  
  364.        FAC.EXE, just press ENTER.  If the file is found on the PATH, it will be
  365.        stamped with a serial number identified with your registration.  Be SURE
  366.        to save your copy of STAMP-SN.EXE so you can use it with future releases
  367.        of FAC.
  368.  
  369.        If you're a user of various executable-file compression utilities like
  370.        LZEXE, PKLITE, or EXEPACK, you MUST run STAMP-SN on the unmodified
  371.        (uncompressed) original file BEFORE you use on of these utilities.  If
  372.        you try to run STAMP-SN on a compressed EXE file, you'll be unable to
  373.        stamp the serial number.
  374.  
  375.        If you are a registered user of FAC, you MAY NOT give anyone a copy of
  376.        the serial number stamped program, nor may you give anyone the
  377.        STAMP-SN.EXE program.
  378.        ----------------------------------------------------------------------
  379.  
  380.  
  381.        Using FAC from the DOS Command Line
  382.        -----------------------------------
  383.  
  384.        First, you must know how to invoke FAC from the DOS command line
  385.        prompt.  Type "FAC /H" (or "FAC /?" or "FAC /" or "FAC ?") then press
  386.        ENTER and you'll see a complete list of options you have for using FAC.
  387.        Don't be alarmed at all the options.  FAC is very simple to use and
  388.        really requires only one thing--a string to search for. All the options
  389.        are for more advanced use.  FAC is designed to be very easy to use
  390.        without reference to documentation or help screens.
  391.  
  392.        FAC will immediately search for area code information if you enter the
  393.        search string as an DOS parameter after the program name.  If you
  394.        wish, you can simply type "FAC" to start the program without a
  395.        parameter.  You'll be prompted for a search string once inside the
  396.        program.  For example, suppose you wanted to know the area code for
  397.        Boulder, Colorado.
  398.  
  399.        At the DOS prompt, type: "FAC boulder" (without the quotes, of course)
  400.        then press ENTER.  The program will start, a window will popup on the
  401.        screen, and the program automatically begins its search.  Almost
  402.        instantly, you'll see information about the area code for Boulder.  The
  403.        first column in the display window has the 3 digit area code 303
  404.        (international area codes aren't necessarily 3 digits).  The next column
  405.        shows the 2 character postal abbreviation for Colorado, CO.  The third
  406.        column shows the full name of the state.  The last column shows the major
  407.        cities in this particular area code.  Notice Boulder appears in this
  408.        list.  When you've finished with the program, just press Esc and you'll
  409.        exit back to DOS.
  410.  
  411.        Let's take another example.  Suppose someone leaves you a note to call
  412.        someone in a 309 area code.  You don't recognize this area code and it's
  413.        inconvenient to look up the area code in the phone book. You type "FAC
  414.        309" then press ENTER.  Almost instantly, you learn that the 309 area
  415.        code includes Peoria, Moline, and Rock Island, Illinois.
  416.  
  417.        Searching for an international area code is almost exactly the same.
  418.  
  419.        -------
  420.        Page 7
  421.         Find Area Code Documentation
  422.        ----------------------------
  423.  
  424.        Just type in a city name, say Paris.  The program will display the
  425.        country code in the first column, the country name in the next column
  426.        (there is no postal abbreviation for most foreign countries), and a list
  427.        of major cities and city codes for that country in the last column.  Each
  428.        city code is listed in parentheses immediately after the city name.  If
  429.        you searched for Paris, you would know the country code for France is 33
  430.        and the city code for Paris is 1.
  431.  
  432.        Anytime you see a city name in all CAPITAL letters, that city is a state
  433.        or country capital.
  434.  
  435.        You get the idea.  By typing "FAC X" where X is any alphanumeric string,
  436.        you can quickly search the area code database.  You can search by area
  437.        code, state postal abbreviation, state name, country, city, or any
  438.        portion of thereof.  The search string can be in any combination of upper
  439.        or lower case letters and numbers. and must be at least two characters.
  440.        If you use only two characters, the program assumes you want to search
  441.        for two-letter state postal abbreviations which appear only in the first
  442.        7 characters of each line.  The program doesn't look at anything else on
  443.        the line except these first 7 characters.  Note: this restriction does
  444.        not apply to the data in the external data file (see the section below on
  445.        The External Data File).
  446.  
  447.        After you've performed a search, the last string searched for is shown
  448.        after the prompt.  To enter a new string, just start typing it in (the
  449.        old string will go away when you press the first character). You can also
  450.        edit the existing string by using the following keys:
  451.  
  452.            Left Arrow       - Cursor left one character
  453.            Right Arrow      - Cursor right one character
  454.            Ctrl-Left Arrow  - Cursor left one word
  455.            Ctrl-Right Arrow - Cursor right one word
  456.            Home             - Cursor to the beginning of the string
  457.            End              - Cursor to the end of the string
  458.            Del              - Delete the character under the cursor
  459.            BkSp             - Delete the character the left of the cursor
  460.            Ctrl-Y           - Delete the entire string
  461.            Ctrl-End         - Delete from the cursor to the end of the string
  462.            Ctrl-Home        - Delete from start of line to the cursor
  463.            Ctrl-T           - Delete word to the right of the cursor
  464.            Ins              - Toggle between Overwrite and Insert mode
  465.            Ctrl-R           - Restore the original contents of the line
  466.            ENTER            - Start searching for the specified string
  467.  
  468.        Search strings are limited to 20 characters.  Spaces entered at the
  469.        beginning and end of the search string are ignored (and discarded), but
  470.        spaces anywhere else in the string are valid.  This means you could
  471.        search for "San Francisco" but not for " San Francisco ".
  472.  
  473.        You can make any number of searches before exiting the program.
  474.        Remember, just press Esc to exit the program (Ctrl-C or Ctrl-Break will
  475.        also exit).
  476.  
  477.        While you're inside FAC, you can get brief help by pressing F1. This
  478.  
  479.        -------
  480.        Page 8
  481.         Find Area Code Documentation
  482.        ----------------------------
  483.  
  484.        shows you that F1 gets help, F2 toggles the "Fuzzy" search mode, F5
  485.        prompts you for new data to add to an external data file, F9 toggles the
  486.        AutoZoom screen size feature, F10 toggles screen zooming, and Esc exits
  487.        the program.  You can reposition FAC's window up and down on the screen
  488.        by pressing the up and down arrow keys.
  489.  
  490.        Sometimes, your search string will find more information than can be
  491.        displayed in the window.  If the screen fills up with information, the
  492.        program will pause and prompt you to press the Esc key to stop
  493.        displaying information from the current search, or press any other key
  494.        to continue displaying information.  If you press Esc to stop displaying
  495.        information, you'll be returned to FAC's prompt.  Pressing Esc once more
  496.        will exit the program.
  497.  
  498.        If FAC doesn't find a match for your search string in its data file,
  499.        you'll see a brief message in the center of the window saying that the
  500.        string couldn't be found.  You can then edit the search string if you
  501.        wish.
  502.  
  503.        Once you've experimented with FAC, you may notice that sometimes it pops
  504.        up in the upper half of your screen and sometimes it pops up in the lower
  505.        half.  Why?  FAC looks at where the cursor is positioned and brings up
  506.        the FAC window in the opposite half of the screen you're working in.
  507.        This insures the program doesn't obscure something you may need to see
  508.        while you're using the program.
  509.  
  510.        FAC also shows you today's date and the current time (in 24-hour format)
  511.        at the top center of the program's window while the program is on the
  512.        screen.  See the Advanced Options and Configuration section for selecting
  513.        12/24 hour clock format with the /C switch.
  514.  
  515.        The other thing you may have noticed is that FAC pops up in whatever mode
  516.        (25, 43, or 50 lines) your video card is in.  FAC automatically checks to
  517.        see how many lines you're using at the moment and adjusts its windows
  518.        accordingly.  FAC isn't designed to support 40 column mode, but will
  519.        safely pop up (although you won't like what you see).  FAC won't popup at
  520.        all when you're in graphics mode.
  521.  
  522.        One final note on using FAC from the command line.  You can "redirect"
  523.        the output from the program's status messages and so forth by using
  524.        standard MS-DOS redirection conventions.  For example, if you didn't
  525.        want info on the program's installation to appear on the screen while
  526.        booting up, you could install FAC like this:
  527.  
  528.                                     FAC /I >NUL
  529.  
  530.        When FAC installs, you wouldn't see messages from the program at all.
  531.  
  532.        If you want to, you could use the redirection capability to send FAC
  533.        status messages to a file or to the printer.
  534.  
  535.               FAC -H >FILENAME.EXT   This would send help info to FILENAME.EXT
  536.               FAC -H >PRN            This would send help info to the printer
  537.  
  538.  
  539.        -------
  540.        Page 9
  541.         Find Area Code Documentation
  542.        ----------------------------
  543.  
  544.        PLEASE NOTE:  If you redirect FAC's output to a file when you install it
  545.        as a memory resident program, that file remains "open" and is not
  546.        "released" back to MS-DOS normally until you uninstall FAC using the /U
  547.        option (or until you reboot your computer).  This is normally not a
  548.        problem, but could be if you had an extreme number of files open.  If
  549.        you have problems, try using a larger FILES entry in your CONFIG.SYS
  550.        file (if you're currently using FILES=24, try using FILES=28).  Again,
  551.        this is only when you redirect output when installing FAC as a TSR.
  552.  
  553.        You cannot redirect any of the windows or output from the running
  554.        program.
  555.  
  556.  
  557.        The External Data File
  558.        ----------------------
  559.  
  560.        FAC uses its own data file, FAC.DAT to store area code information so
  561.        that you can search for it.  This file contains ASCII text which you can
  562.        modify to update or correct area codes, or for any other purpose.  Many
  563.        users use FAC to keep track of their own personal information (see the
  564.        section toward the end of this document on Alternative Uses).  Beginning
  565.        with FAC Version 1.50, your data can be stored in a data file external to
  566.        the FAC.DAT file.  This allows you to maintain your own file of
  567.        information and keep it separate from the area codes in the FAC.DAT file.
  568.  
  569.        The default external data file, MY-DATA.DAT is automatically searched if
  570.        it exists in: the directory you're currently PATHed to; the directory
  571.        where FAC.EXE resides; or elsewhere on the path defined by the DOS PATH
  572.        statement most people have in their AUTOEXEC.BAT file.  If a line in the
  573.        MY-DATA.DAT file contains the string you're searching for, it will be
  574.        displayed in FAC's window after the FAC.DAT file is searched.  Text found
  575.        in the external data file will be displayed in dimmer characters than
  576.        text found in the FAC.DAT file so you'll know where the information came
  577.        from.
  578.  
  579.        If you specify a different external data file via the /D switch (see
  580.        Advanced Options and Configuration), the specified file will be searched
  581.        instead of the MY-DATA.DAT file.  This file can be anywhere on the disk,
  582.        but if it isn't in one of the places where FAC looks for MY-DATA.DAT, you
  583.        must use the /D switch to specify the full disk, directory and file name.
  584.  
  585.        The external data file can contain any text you wish.  This can be a file
  586.        you create, or it can be a pre-existing file like a BBS listing.  FAC
  587.        expects the file to be "line-oriented".  This means that if you're
  588.        searching a text document for two words which are on different lines, FAC
  589.        won't be able to find the line.
  590.  
  591.  
  592.        Adding to the External Data File
  593.        --------------------------------
  594.  
  595.        You can add your own information to the external data file in two ways.
  596.        You can use a text editor or word processor to create and maintain the
  597.        file, or you can you use FAC's internal capability to add data to the
  598.  
  599.        -------
  600.        Page 10
  601.         Find Area Code Documentation
  602.        ----------------------------
  603.  
  604.        external data file.
  605.  
  606.        If you use an editor to create or modify the external data file, you must
  607.        adhere to two rules: 1) you must save the file in pure ASCII format; and
  608.        2) each line must not exceed 119 characters.  You can add your
  609.        information anywhere in the file in any order.  Once you've added a line
  610.        to the file, FAC will be able to search for that information if the file
  611.        is the default or specified external data file.
  612.  
  613.        While using FAC, you can press F5 to add a new line of data to the end of
  614.        the default or specified external data file.  Just press F5, and you'll
  615.        see a status message indicating you're adding data.  On the bottom line
  616.        of the window, you'll see a prompt for the new data to add.  Type in the
  617.        line of information at the prompt and press ENTER when you're satisfied
  618.        with the way the information looks.  You can use the same keys, described
  619.        above, to edit this line as you use to edit the search string.  You'll
  620.        automatically be limited to 119 characters.  If MY-DATA.DAT doesn't
  621.        exist, the file will be created in the same directory which contains
  622.        FAC.EXE.  If you specified an external data file with /D, the file must
  623.        already exist, or the program won't start.
  624.  
  625.        When you press ENTER, you'll see a status message that the new data was
  626.        added to either the default or specified external data file.  Now you can
  627.        search for the information.  Press F5 to add another line of information
  628.        to the external data file.
  629.  
  630.        When you add data to the external data file, your information is appended
  631.        to the very end of the file--it isn't sorted in any way.  If you want the
  632.        file sorted, use a separate utility like Vern Buerg's excellent SORTF.COM
  633.        (current version as of this date is SORTF237.ZIP).  Note that it really
  634.        isn't necessary to have the file sorted since the entire file is searched
  635.        each time.  Even you don't know where something is in the file when you
  636.        edit it, you can always use your editor's search function to find the
  637.        line you want.
  638.  
  639.  
  640.        Using FAC as a Popup TSR Program
  641.        --------------------------------
  642.  
  643.        More often than not, when you're at your computer and you need area code
  644.        information, you're in the middle of doing something else.  To use FAC
  645.        as described above, you must save your work, exit the program you're
  646.        using, then invoke FAC.  FAC would tell you what you need to know, then
  647.        you would have to restart your original program, go back to where you
  648.        left off, and try to go back to work.
  649.  
  650.        It would be much more convenient if you could simply have FAC
  651.        immediately "popup" over whatever you're doing, give you the information
  652.        you need, then go away, leaving you exactly where you were.  Not only
  653.        would it be more convenient, it would save a lot of your valuable time.
  654.  
  655.        FAC can do this.  All you have to do is tell FAC to install itself as a
  656.        "popup" or memory resident program.
  657.  
  658.  
  659.        -------
  660.        Page 11
  661.         Find Area Code Documentation
  662.        ----------------------------
  663.  
  664.        You'll also see this type of program called a TSR, which stands for
  665.        Terminate & Stay Resident.  A TSR is installed or loaded once from the
  666.        DOS command line.  It stays in memory even while you're doing other
  667.        things, and watches to see when you press a special key or key sequence
  668.        to activate it.  This special key sequence is known as a "hotkey".  When
  669.        you press the hotkey, the program starts.
  670.  
  671.        Here's how to install FAC as a memory resident, popup program.  At the
  672.        DOS prompt, type: "FAC /I" (without the quotes) then press ENTER.  FAC
  673.        will then install itself in memory as a TSR.  When it has successfully
  674.        installed itself, it will describe how it has been installed.  In this
  675.        case, you will use FAC's defaults.
  676.  
  677.        Once you've installed FAC as described above, you can press FAC's hotkey
  678.        to pop it up wherever you are.  FAC's hotkey is <Alt><LeftShift><F>.  To
  679.        press this key sequence, press and hold the "Alt" key, press and hold
  680.        the Shift key on the left side of your keyboard, then press the F key.
  681.        As soon as all three keys are pressed, FAC will "wakeup" and activate
  682.        itself.
  683.  
  684.        FAC will draw its window on the screen right over the top of whatever
  685.        you're doing.  Don't worry.  When FAC is done, it will return the screen
  686.        to exactly the way it found it.
  687.  
  688.        When you invoke the TSR version of FAC as installed above, it works
  689.        somewhat differently than it does when you start it from the DOS prompt.
  690.        Recall that when you run the program from the DOS prompt, you must enter
  691.        a parameter (search string) so FAC knows what to search for. When FAC
  692.        operates as a TSR, it can read the text string (state, area code, city,
  693.        etc.) you want to search for right off the screen by looking
  694.        at the word "under" or to the left of where you have the cursor
  695.        positioned!  (You can turn off reading the search string from the screen
  696.        by using the /G switch.  See Advanced Options and Configuration.)  If
  697.        the cursor isn't in a word or just to the right of a word, no search
  698.        string will be passed to FAC, but it will still pop up.  Reading the
  699.        search string from the screen can save you time typing in what to search
  700.        for and it can avoid errors you might make while typing.
  701.  
  702.        So, what happens?  You press the hotkey, FAC pops up over your work,
  703.        reads the text "under" the cursor, and immediately begins its search.
  704.        After it finds and displays a match, it prompts you for another search.
  705.        Now the program operates exactly the way it does when used from the
  706.        DOS prompt.
  707.  
  708.        If you use the up/down arrow keys to reposition the normal FAC window,
  709.        the position you choose will be retained the next time you press the
  710.        hotkey.  Note that this means that because you've repositioned the
  711.        window, it may pop up and obscure text near the cursor.  If this is a
  712.        problem or you want to "reset" window positioning to pop up in the
  713.        opposite half of the screen from the cursor, just press F10 (once if you
  714.        are zoomed, twice if you aren't zoomed) and the automatic positioning
  715.        will be restored.
  716.  
  717.        You can press F10 to zoom FAC's window to take up the full screen, and
  718.  
  719.        -------
  720.        Page 12
  721.         Find Area Code Documentation
  722.        ----------------------------
  723.  
  724.        the program will "remember" to pop up in this mode the next time you
  725.        press the hotkey.
  726.  
  727.        When you want to exit, press Esc, and FAC will collapse its window, and
  728.        restore your screen and cursor location exactly the way it appeared when
  729.        you pressed the hotkey.
  730.  
  731.        If you want to uninstall FAC as a memory resident program (TSR), you
  732.        have two choices.  You can uninstall FAC from the command line by using
  733.        the /U switch, or you can press Alt-U twice while inside FAC's window.
  734.        After you press Alt-U a second time, the program will exit and will
  735.        uninstall itself from memory.
  736.  
  737.  
  738.        What Are Swapping TSRs?
  739.        -----------------------
  740.  
  741.        You may have noticed that when you pressed the hotkey, a reverse video
  742.        message appeared on the bottom of the screen which said "Swapping in..."
  743.        Similarly, when you pressed Esc to exit the program, "Swapping out..."
  744.        appeared.  These messages tell you the program is swapping into and out
  745.        of memory (RAM) from disk or expanded memory (EMS).  Why does the program
  746.        do this?
  747.  
  748.        Swapping TSRs are relatively new.  When they install, they take a
  749.        snapshot of the complete program and write it out to a "swap file" on
  750.        disk (or use EMS memory), then free up all but a tiny portion of memory
  751.        (which holds the portion of the program which watches for the hotkey and
  752.        then does the actual swapping to/from disk).  When swapping TSRs pop up
  753.        over your existing program, they may also have to take a snapshot of
  754.        your application and write it to disk or EMS memory before it swaps the
  755.        rest of the TSR in. So why do we want to put up with all this swapping
  756.        in and out? Doesn't this cause delays?  Why can't the program just pop
  757.        up instantly like my other TSRs?
  758.  
  759.        Well, like everything else in the world, there are tradeoffs.  In order
  760.        to run full-featured, advanced programs, it takes memory (RAM).  The
  761.        more full-featured the program, the more memory it takes. Unfortunately,
  762.        memory is a limited resource and "full-featured" often translates to
  763.        "memory-hungry."  FAC has many features but still only requires about
  764.        128K of RAM to run.  This isn't a problem if FAC is the only program you
  765.        want to run, but it's a big problem if you want FAC to be loaded as a
  766.        TSR at the same time you're running other (full-featured) programs.
  767.  
  768.        When FAC is installed as a swapping TSR, it only requires about 7K of
  769.        RAM to watch for you to press the hotkey and then swap what you're doing
  770.        out and swap itself in.  With all the other TSRs you use and the other
  771.        programs you run, you need all the help you can get.  The TSR swapping
  772.        technology FAC uses helps you optimize all the memory you have with very
  773.        little impact on how you use the program.  As computers continue to
  774.        become faster and more powerful, you'll see more and more swapping TSRs.
  775.  
  776.        The time you spend waiting on swapping is relatively trivial compared to
  777.        the time it takes to leave your application, then return.  On even the
  778.  
  779.        -------
  780.        Page 13
  781.         Find Area Code Documentation
  782.        ----------------------------
  783.  
  784.        slowest computers, swapping delays are only about 1 or 2 seconds.  On
  785.        faster computers using EMS memory for swapping, the TSR can pop up
  786.        instantaneously, for all practical purposes.  Of course swapping delays
  787.        can be affected by a wide range of hardware and software variables.
  788.        Fast hard disks with 1:1 interleaves and high data transfer rates make a
  789.        huge difference, even when used on an 808X CPU.  If you're able to use
  790.        EMS memory, RAM Disk, or disk caching (hardware or software) you'll find
  791.        swapping delays to be negligible or even unmeasurable.  See the section
  792.        below on Advanced Options and Configuration for information on how to
  793.        reduce swapping delays.
  794.  
  795.        The bottom line: I think the tradeoffs (swapping delays) are completely
  796.        acceptable given the tremendous savings in your precious RAM. I think
  797.        you'll think so, too!
  798.  
  799.  
  800.        Advanced Options and Configuration
  801.        ----------------------------------
  802.  
  803.        FAC has several different options or "switches" you can use to customize
  804.        the way FAC works when you invoke the program or install it as a popup.
  805.        Again, FAC is designed to be very easy to use, and you may be perfectly
  806.        happy with FAC's performance when you use its default options.
  807.  
  808.        Switch options are always preceded by either a "/" or a "-" and can be
  809.        upper or lower case letters.  Remember, to see a complete list of all
  810.        FAC's options, just type "FAC /H" at the DOS prompt and press ENTER.
  811.        Here's a quick summary of FAC's switches:
  812.  
  813.            /A     Don't make disk swap files hidden/system file(s); (with /I)
  814.            /B     Don't use color attributes; use monochrome attributes
  815.            /C     Don't use 24-hour clock format; use 12-hour format
  816.            /D     Use the specified file for the external data file
  817.            /E     Don't use EMS memory for swapping (use disk); (with /I)
  818.            /F     Enables "fuzzy search" mode
  819.            /G     Don't read text from screen on popup; (with /I)
  820.            /H     Show a list and description of the various switch options
  821.            /I     Loads popup/TSR with defaults
  822.            /M     Suppresses swapping messages (with /I)
  823.            /N     No swapping (with /I)
  824.            /P     Path for swap files; used (with /I)
  825.            /T     Don't use the AutoZoom feature
  826.            /U     Unload popup from memory, if possible
  827.            /X     Don't use exploding windows
  828.            /Z     Use a "zoomed" window which uses the full screen
  829.  
  830.        Most of these switches can be used in either of two ways: 1) as command
  831.        line switches, entered when the program is run; or 2) entered as part of
  832.        an environment variable called "FAC".  If you wanted the program to use
  833.        the fuzzy search mode, you could simply enter  "FAC bolder /f" and the
  834.        search would take place, using the fuzzy search.  But, what if you
  835.        wanted FAC to ALWAYS start in (default to) fuzzy mode?  This is where
  836.        the FAC environment variable would be used.  Use the SET command to
  837.        assign a string to the FAC environment variable:
  838.  
  839.        -------
  840.        Page 14
  841.         Find Area Code Documentation
  842.        ----------------------------
  843.  
  844.  
  845.                                       SET FAC=/f
  846.  
  847.        If you entered this before running FAC or had this line in your
  848.        AUTOEXEC.BAT file, FAC would always start in fuzzy mode without having
  849.        to enter it on the command line when you start the program.
  850.  
  851.        Suppose you always wanted FAC to use fuzzy search mode, zoomed windows,
  852.        non-exploding windows, and when installed as a TSR: no swapping messages
  853.        with a swap file path of d:\temp and without getting search strings from
  854.        the screen.  Instead of entering each of these switches each time you
  855.        run the program, you would use the following environment variable entry,
  856.        preferably in your AUTOEXEC.BAT file:
  857.  
  858.                          SET FAC=/f /Z -x /M -pd:\temp /g
  859.                                   ^  ^  ^  ^  ^         ^
  860.        Fuzzy mode ----------------|  |  |  |  |         |
  861.        Zoomed window ----------------+  |  |  |         |
  862.        Non-exploding window ------------+  |  |         |
  863.        Swapping messages off --------------+  |         |
  864.        Swap path -----------------------------+         |
  865.        Don't get search string from screen -------------+
  866.  
  867.        Now, every time FAC is run the above settings will be the defaults. If
  868.        you install the program as a TSR, these settings will be the default
  869.        settings unless you change them after invoking the program with the
  870.        hotkey.  If you change them while TSR, that change will remain effective
  871.        until the next time you change it.
  872.  
  873.        Note the use of both a slash and dash as switch characters and the mixed
  874.        use of upper and lower characters.  You can use all FAC option switches
  875.        in the SET FAC environment variable except /I and /U.  You can use any
  876.        combination of switches in any order.  Invalid switch settings will be
  877.        ignored.  If you enter a swap path with the /P switch, it will be
  878.        checked for validity prior to program execution.
  879.  
  880.        The following is a complete description of all FAC option switches listed
  881.        in alphabetical order.
  882.  
  883.  
  884.        The "/A" Switch
  885.        ---------------
  886.  
  887.        When used with /I (and when disk is used for swapping), uses swap files
  888.        with "normal" file attributes rather than hidden/system attributes.  Can
  889.        be used in the FAC environment variable.
  890.  
  891.        The /A switch says, "When FAC is installed as a TSR using disk for
  892.        swapping, don't use hidden/system attributes on the swap file(s)."  This
  893.        switch allows you to control the file attribute used on the swap files.
  894.  
  895.        NOTE: If you use this switch, be SURE not to delete the swap file(s)
  896.        while FAC is memory resident (TSR).  If this file isn't present when the
  897.        program tries to swap itself in, you'll probably have to reboot your
  898.  
  899.        -------
  900.        Page 15
  901.         Find Area Code Documentation
  902.        ----------------------------
  903.  
  904.        computer to recover.
  905.  
  906.        The default is to use hidden/system attributes on the swap file(s) when
  907.        swapping to disk.  This switch does nothing if EMS is being used.
  908.  
  909.        Example: "FAC /I /A"
  910.  
  911.        In this example (if EMS wasn't available), the swap files would have
  912.        normal attributes instead of hidden/system attributes.
  913.  
  914.  
  915.        The "/B" Switch
  916.        ---------------
  917.  
  918.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  919.        variable.
  920.  
  921.        This option or program "switch" applies to FAC when run from the DOS
  922.        prompt (non-memory resident mode) or when you install it as a popup.  If
  923.        you use the "/B" switch, FAC will use only black and white (monochrome)
  924.        attributes for its text and window displays.  If you have a monochrome
  925.        system, FAC will normally be able to detect this and automatically use
  926.        monochrome attributes.  If you use a system which has a color card,
  927.        running in color mode, but have a monochrome monitor, you should use the
  928.        /B switch or use the DOS MODE command (e.g., MODE BW80).  You may also
  929.        want to use the /B switch if you have a laptop or notebook computer with
  930.        a liquid crystal display (LCD).
  931.  
  932.        The default is to use color attributes if you system is using the color
  933.        mode.
  934.  
  935.        If you want to disable the use of color attributes when you run the
  936.        program from the DOS command line (non-TSR), just put the /B switch after
  937.        your search parameter.
  938.  
  939.        Example:  "FAC City /B"
  940.  
  941.        When the program starts, the window and its contents would start out
  942.        using monochrome or black and white screen attributes.
  943.  
  944.  
  945.        The "/C" Switch
  946.        ---------------
  947.  
  948.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  949.        variable.
  950.  
  951.        This option or program "switch" applies to FAC when run from the DOS
  952.        prompt (non-memory resident mode) or when you install it as a popup.  If
  953.        you use the "/C" switch, FAC will use a normal (12-hour, am/pm) clock
  954.        rather than the 24-hour time format.
  955.  
  956.        The default is to use the 24-hour clock format.
  957.  
  958.  
  959.        -------
  960.        Page 16
  961.         Find Area Code Documentation
  962.        ----------------------------
  963.  
  964.        If you want to disable the use of the 24-hour time format, when you run
  965.        or install the program, just use the /c switch.
  966.  
  967.        Example:  "FAC City /C"
  968.  
  969.        When the program starts, the clock in the top center of the window will
  970.        be displayed in the 12-hour time format.
  971.  
  972.  
  973.        The "/D" Switch
  974.        ---------------
  975.  
  976.        Used when FAC is run from the command line or when it's installed as a
  977.        TSR.  Can be used in the FAC environment variable.
  978.  
  979.        The /D switch, when followed by a filename specification, says,
  980.        "use the specified file name as the external data file to search or add
  981.        information to."  The file specification must be a valid, already
  982.        existing file on your system and must reside in: the current directory,
  983.        the directory where FAC.EXE resides, or in a directory defined by the DOS
  984.        PATH statement.  If the file doesn't exist, or can't be found, FAC will
  985.        abort with an error message.  If you know the file exists, make sure it
  986.        is one of the three places described above.  If the file doesn't exist,
  987.        you must create it.  To create a new file, use a text editor or use
  988.  
  989.                              COPY CON FILENAME.EXT <ENTER>
  990.  
  991.        then type in text to be entered in the file.  When you're done, press F6
  992.        to create the end of file marker then press ENTER to save the file.
  993.  
  994.        The default is to use the file MY-DATA.DAT.
  995.  
  996.        Examples: "FAC /Dstuff.txt"
  997.  
  998.        This example would start up FAC using the file STUFF.TXT as the external
  999.        data file instead of the default, MY-DATA.DAT.
  1000.  
  1001.  
  1002.        The "/E" Switch
  1003.        ---------------
  1004.  
  1005.        When used with /I; don't use Expanded Memory (EMS) when it's available.
  1006.        Can be used in the FAC environment variable.
  1007.  
  1008.        The /E switch says, "even if EMS memory is present, don't grab it and
  1009.        use it for swapping--use disk instead."  This switch prevents the
  1010.        program from automatically allocating your EMS memory.  Note that using
  1011.        EMS memory greatly speeds up swapping; you should use it if possible.
  1012.  
  1013.        The default is to use EMS memory for swapping.
  1014.  
  1015.        Example: "FAC /I /E"
  1016.  
  1017.        This example disables the use of EMS memory for swapping when FAC is
  1018.  
  1019.        -------
  1020.        Page 17
  1021.         Find Area Code Documentation
  1022.        ----------------------------
  1023.  
  1024.        installed as a TSR.
  1025.  
  1026.  
  1027.        The "/F" Switch
  1028.        ---------------
  1029.  
  1030.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  1031.        variable.
  1032.  
  1033.        The /F switch says, "Use a 'fuzzy' search method which doesn't require
  1034.        an exact spelling to get a match."  When you use the /F switch, you tell
  1035.        the program to use a powerful text matching technique called the soundex
  1036.        algorithm.  Soundex searches attempt to match words based on the way
  1037.        they sound rather than by how they're spelled.  If you aren't sure how a
  1038.        city, state, or country is spelled, or you're getting a 'not found'
  1039.        message with the string you're using, try the /F switch.
  1040.  
  1041.        There is a price to pay for the soundex searching method: speed.
  1042.        Searches may take up to 10 times as long as normal "exactly spelled"
  1043.        searches, but this is well worthwhile if it's the only way you can find
  1044.        what you're looking for.  You may also get a lot more seemingly
  1045.        unrelated "hits" from a fuzzy search, but this is normal.  After all,
  1046.        you're looking for anything that remotely resembles or sounds like your
  1047.        search string.
  1048.  
  1049.        Since fuzzy searches take longer, you may need to stop the search before
  1050.        it completes.  You can press any key during the fuzzy search and it will
  1051.        stop and return to the program's prompt.
  1052.  
  1053.        Once you're inside FAC, you can use the F2 key to toggle between normal
  1054.        searching and fuzzy searches (there's an indicator on in the top center
  1055.        of the window frame when you're in fuzzy mode).  If you've installed FAC
  1056.        as memory resident program, the program will remember whether you were
  1057.        in fuzzy mode the last time you used it.
  1058.  
  1059.        Examples: "FAC Colorawdo /f" "FAC springfeild /f"
  1060.  
  1061.        In both these examples, the program would immediately start searching
  1062.        for the specified strings, but the 'Fuzzy Search' indicator would be on
  1063.        at the top center of the window frame, and you would also see a flashing
  1064.        message telling you the search is in progress.  The first example would
  1065.        give you "hits" for Colorado, even though it's misspelled.  The second
  1066.        example would find three instances of Springfield as you might expect,
  1067.        but also yields Palm Springs, Steamboat Springs, Colorado Springs, and
  1068.        Big Spring.
  1069.  
  1070.  
  1071.        The "/G" Switch
  1072.        ---------------
  1073.  
  1074.        When used with /I; don't get search strings from the screen in TSR mode.
  1075.        Can be used in the FAC environment variable.
  1076.  
  1077.        The /G switch says, "When you popup FAC, don't read the text to search
  1078.  
  1079.        -------
  1080.        Page 18
  1081.         Find Area Code Documentation
  1082.        ----------------------------
  1083.  
  1084.        for off the user's screen; just ask for a string."  This switch prevents
  1085.        you from grabbing the search string from the screen and requires you to
  1086.        enter it yourself.
  1087.  
  1088.        The default is to read the screen for the text to search for.
  1089.  
  1090.        Example: "FAC /I /G"
  1091.  
  1092.        This example disables reading the text from the screen when FAC is
  1093.        popped up.
  1094.  
  1095.  
  1096.        The "/I" Switch
  1097.        ---------------
  1098.  
  1099.        Used to install FAC as a swapping or non-swapping TSR.  Can NOT be used
  1100.        in the FAC environment variable.
  1101.  
  1102.        The /I switch says, "Install FAC as a memory resident program using its
  1103.        defaults and/or other switches." If you use /I by itself, the program
  1104.        will install itself using several predefined defaults, all of which can
  1105.        be changed by using other switches.
  1106.  
  1107.        If you use /I alone to install FAC, the following defaults are used:
  1108.  
  1109.          - Swapping to disk is enabled unless sufficient EMS memory is found.
  1110.          - Messages which tell you swapping is happening are enabled.
  1111.          - Disk swap files will be hidden/system files.
  1112.          - The disk and directory path FAC uses for swap files is the same
  1113.            disk/directory where FAC found FAC.DAT.
  1114.          - AutoZoom is on.
  1115.          - Exploding windows are enabled (see the /X switch above).
  1116.  
  1117.        After you use the /I switch to install FAC, you will see a status
  1118.        message which describes the state of each of the above defaults.
  1119.  
  1120.        Note that if FAC is already installed, you won't be able to install a
  1121.        second copy.  If you try to install it again, you'll get an error
  1122.        message and the installation will abort.
  1123.  
  1124.        If you don't have enough disk space for the swap files, you'll get an
  1125.        error message and FAC won't install as a TSR.
  1126.  
  1127.        After you install FAC as a TSR, don't move or rename the FAC.DAT file or
  1128.        you will probably get dumped from the TSR when you try to use it.
  1129.  
  1130.        Please note that you can't pop up FAC when you're using a program which
  1131.        is currently in graphics mode.  If you try to pop it up, you'll hear a
  1132.        beep and nothing else will happen.
  1133.  
  1134.        Also, be aware that since FAC swaps the currently running program out so
  1135.        it can become active, you could have a problem with some programs,
  1136.        especially communications programs.  In this case, you should run the
  1137.        program in non-swapping mode (/N).  It still isn't advisable to pop up
  1138.  
  1139.        -------
  1140.        Page 19
  1141.         Find Area Code Documentation
  1142.        ----------------------------
  1143.  
  1144.        any TSR when a communications program if data is coming in or going out.
  1145.  
  1146.        FAC should work fine with most other TSRs.  The only problem you may
  1147.        encounter is when you don't load FAC last among other TSRs.  This won't
  1148.        hurt anything, but you may not have access to your other TSRs when FAC
  1149.        is swapped in (since it may have swapped the other TSR(s) out of RAM).
  1150.        If FAC isn't in use, or it's been installed as a non-swapping TSR, you
  1151.        shouldn't have a problem with TSRs loaded after it.
  1152.  
  1153.        Don't attempt to install FAC while you're "shelled out" of other
  1154.        programs.  For example, you can drop temporarily to DOS from many
  1155.        programs, but you should never try to install FAC while you're doing so.
  1156.        This also applies to many menu programs like PowerMenu and AutoMenu.
  1157.        These programs can leave a portion of themselves in memory.  You should
  1158.        never try to install FAC as a TSR from any menu program.  Completely
  1159.        exit from any other program before attempting to install FAC as a TSR.
  1160.        You may run FAC from the DOS prompt (non-TSR) while shelled out of
  1161.        another program if you wish.
  1162.  
  1163.        Example:  "FAC /I"
  1164.  
  1165.        This would install FAC as a TSR with the defaults described above.
  1166.  
  1167.  
  1168.        The "/M" Switch
  1169.        ---------------
  1170.  
  1171.        Used with /I when installing FAC as a swapping TSR.  Can be used in the
  1172.        FAC environment variable.
  1173.  
  1174.        The /M switch says, "don't put the swapping in/out... messages at the
  1175.        bottom of the screen when swapping."  The program doesn't work any
  1176.        differently, except that you won't see the messages.  If you use EMS
  1177.        memory (the default if you have EMS installed), or a RAM disk for
  1178.        swapping, the swapping messages might be an unnecessary distraction.
  1179.  
  1180.        The default is to have swapping messages appear.
  1181.  
  1182.        Example: "FAC /I /M"
  1183.  
  1184.        This would install FAC as a swapping TSR, but swapping messages would be
  1185.        disabled.
  1186.  
  1187.        
  1188.        The "/N" Switch
  1189.        ---------------
  1190.  
  1191.        Used with /I to install FAC as a non-swapping TSR.  Can be used in the
  1192.        FAC environment variable.
  1193.  
  1194.        The /N switch says, "NO swapping; don't use the swapping TSR mode; keep
  1195.        the entire TSR in RAM."  This will give you instant access to FAC when
  1196.        you press the hotkey, but requires about 140K of RAM.  If you have
  1197.        plenty of RAM, need FAC to be available instantly, and use programs which
  1198.  
  1199.        -------
  1200.        Page 20
  1201.         Find Area Code Documentation
  1202.        ----------------------------
  1203.  
  1204.        won't miss the memory FAC requires in this mode, use the /N switch.
  1205.  
  1206.        The default is a swapping TSR.
  1207.  
  1208.        Example:  "FAC /I /N"
  1209.  
  1210.        This would install FAC as a non-swapping TSR.
  1211.  
  1212.  
  1213.        The "/P" Switch
  1214.        ---------------
  1215.  
  1216.        Used with /I when installing FAC as a swapping TSR.  Can be used in the
  1217.        FAC environment variable.
  1218.  
  1219.        The /P switch, when followed by a complete path specification, says,
  1220.        "put the swap files in the specified disk/directory."  The path
  1221.        specification must be a valid, already existing disk/directory, and must
  1222.        be less than 127 characters.  Do not put a backslash on the end of the
  1223.        path specification (unless you're using the root directory of the
  1224.        specified disk).  In other words, use the same format for the /P path
  1225.        specification that you would for a normal DOS PATH statement.
  1226.  
  1227.        The main reason you would use this switch would be to tell FAC to use a
  1228.        RAM disk. If you have a RAM disk, with at least 250K of space, you
  1229.        should use the /P switch to significantly speed up swapping.  If you use
  1230.        /P to swap to RAM disk, you may wish to use the /M switch to disable the
  1231.        swapping in/out messages.
  1232.  
  1233.        It's highly inadvisable to use a removable (floppy) disk for the swap
  1234.        path.  You won't harm anything, but you could lock up your machine and
  1235.        have to reboot if the disk isn't there when swapping needs to occur.
  1236.  
  1237.        Whether you use the /P option or not, FAC generates either one or two
  1238.        swap files, named FAC-SWP1.$$$ and FAC-SWP2.$$$, each about 130K in size,
  1239.        located wherever FAC.DAT was found (unless you specify otherwise with the
  1240.        /P switch).  These files are marked with both System and Hidden
  1241.        attributes to make it less likely you will accidentally delete them
  1242.        unless you use the /A option).  If they are deleted after FAC is loaded,
  1243.        and you try to pop up the program, you'll get an error message and you'll
  1244.        have to reboot.  When you successfully unload FAC, the swap files are
  1245.        deleted.  If you reboot or turn your machine off, the file(s) will
  1246.        remain, but will be written over the next time FAC is loaded as a TSR.
  1247.  
  1248.        The default is to put swap files in the same disk/directory where
  1249.        FAC.DAT was found.  If you aren't sure where this is, run FAC with no
  1250.        parameters and look at the default determined by the program at run
  1251.        time.
  1252.  
  1253.        Examples: "FAC /I /Pd:" "FAC /I /Pc:\junk
  1254.  
  1255.                  "FAC /I /Pc:\temp\" <=== WRONG!! No backslash after the path!
  1256.  
  1257.        The first example would install FAC as a swapping TSR with the swap
  1258.  
  1259.        -------
  1260.        Page 21
  1261.         Find Area Code Documentation
  1262.        ----------------------------
  1263.  
  1264.        files located on the D: drive.  The second example would use a swap file
  1265.        directory called C:\JUNK.  The third example is an invalid path name and
  1266.        would give an error.
  1267.  
  1268.  
  1269.        The "/T" Switch
  1270.        ---------------
  1271.  
  1272.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  1273.        variable.
  1274.  
  1275.        This option or program "switch" applies to FAC when run from the DOS
  1276.        prompt (non-memory resident mode) or when you install it as a popup.  If
  1277.        you use the "/T" switch, FAC will disable its use of the AutoZoom
  1278.        screen-sizing feature.  If you use this option, it means that when a
  1279.        large number of lines needs to be displayed, the screen won't
  1280.        automatically zoom to full size to show you as much text as possible.
  1281.  
  1282.        The default is to use the AutoZoom feature.
  1283.  
  1284.        If you want to disable the AutoZoom feature when you run the program from
  1285.        the DOS command line (non-TSR), just put the /T switch after your
  1286.        search parameter.
  1287.  
  1288.        Example:  "FAC City /T"
  1289.  
  1290.        When the program starts, the window would start out at the half size and
  1291.        then, when the window fills up with area code information containing the
  1292.        word "city," the program would pause instead of automatically zooming to
  1293.        full screen.
  1294.  
  1295.        
  1296.        The "/U" Switch
  1297.        ---------------
  1298.  
  1299.        Attempts to uninstall FAC (in TSR mode) from memory, and delete swap
  1300.        files, if they exist.  Can NOT be used in the FAC environment variable.
  1301.  
  1302.        The /U switch says, "If it is safe to do so, remove FAC from RAM as a
  1303.        swapping or non-swapping TSR, free up associated memory, and delete any
  1304.        swap files which may have been created."  Use the /U switch if you need
  1305.        to uninstall the program.  "If it is safe to do so" means just that.  If
  1306.        FAC isn't installed as the last TSR, you won't be able to uninstall it.
  1307.        (You may be able to uninstall FAC by using something like the
  1308.        Mark/Release TSRCOM utilities, but even then, you must remove FAC and
  1309.        all TSRs loaded after it.  If you plan to frequently uninstall FAC you
  1310.        should load it last.  Of course if you load FAC last, then you won't be
  1311.        able to unload TSRs loaded before it.  Naturally, you can uninstall any
  1312.        TSR by rebooting your machine.
  1313.  
  1314.        Example: "FAC /U"
  1315.  
  1316.        This example would uninstall FAC if no other TSRs were installed after
  1317.        it.
  1318.  
  1319.        -------
  1320.        Page 22
  1321.         Find Area Code Documentation
  1322.        ----------------------------
  1323.  
  1324.  
  1325.        Note that you can also uninstall FAC from inside the program by pressing
  1326.        Alt-U twice in succession.
  1327.  
  1328.  
  1329.        The "/X" Switch
  1330.        ---------------
  1331.  
  1332.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  1333.        variable.
  1334.  
  1335.        This option or program "switch" applies to FAC when run from the DOS
  1336.        prompt (non-memory resident mode) or when you install it as a popup.  If
  1337.        you use the "/X" switch, FAC will disable its use of exploding windows.
  1338.        Exploding windows don't change the way the program searches or the way
  1339.        you use it, it just changes how the program looks when it starts and
  1340.        finishes.
  1341.  
  1342.        If you want to disable exploding windows when you run the program from
  1343.        the DOS command line (non-TSR), just put the /X switch after your
  1344.        search parameter.
  1345.  
  1346.        Example:  "FAC boulder /x"
  1347.  
  1348.        When the program starts, the window would appear instantly on the screen
  1349.        instead of being exploded onto the screen.
  1350.  
  1351.  
  1352.        The "/Z" Switch
  1353.        ---------------
  1354.  
  1355.        Used for both non-TSR and TSR.  Can be used in the FAC environment
  1356.        variable.
  1357.  
  1358.        This option applies to FAC when run from the DOS prompt (non-memory
  1359.        resident mode) or when you install it as a popup.  If you use the "/Z"
  1360.        switch, FAC will "zoom" its window to take up the entire screen.
  1361.  
  1362.        Example:  "FAC TX /Z"
  1363.  
  1364.        When the program starts, the window takes up the entire screen.  You
  1365.        might want to use this option if you're viewing lists of area codes or
  1366.        all the area codes for one state.
  1367.  
  1368.  
  1369.        Error Conditions
  1370.        ----------------
  1371.  
  1372.        FAC is very friendly and shouldn't give error messages unless there's
  1373.        really something you need to fix.  Here are some error messages FAC
  1374.        could generate and why you might get them:
  1375.  
  1376.        - "Error while trying to find/open FAC.DAT"   Make sure FAC.DAT exists
  1377.          and that the disk and directory containing FAC.DAT is on your DOS path.
  1378.  
  1379.        -------
  1380.        Page 23
  1381.         Find Area Code Documentation
  1382.        ----------------------------
  1383.  
  1384.  
  1385.        - "XXXX is an invalid path name!"  You've specified an incorrect path
  1386.          when using the /P switch or the path you've specified is too long the
  1387.          limit is 127 characters)
  1388.  
  1389.        - "XXXX is an invalid file name!"  You've specified an incorrect file
  1390.          when using the /D switch.
  1391.  
  1392.        - "FAC isn't loaded!"  You've tried to uninstall FAC (as a TSR) when it
  1393.           wasn't previously loaded.  Use the /I option to install it.
  1394.  
  1395.        - "Unable to unload FAC.  Probably isn't safe to do so!"  This isn't
  1396.           really an error message; it just means that the program can't
  1397.           uninstall itself, probably because there's another TSR or program
  1398.           loaded after it. Try rebooting if you have to unload it.
  1399.  
  1400.        - "XXXX not found."  This, too, isn't really an error message. You'll
  1401.           get this message any time you searched for string and it wasn't
  1402.           found. The string you're searching for may not be in FAC.DAT or you
  1403.           may need to check your spelling.  Try the fuzzy search mode if you
  1404.           aren't sure of the spelling.
  1405.  
  1406.        - "FAC is already memory resident!"  You're trying to install FAC after
  1407.           it's already been loaded.  Use FAC /U to uninstall it.
  1408.  
  1409.        - "Unable to go TSR.  Do you have enough swap file disk space on X:?"
  1410.          This message means FAC couldn't go TSR, probably because you don't have
  1411.          enough RAM, or you don't have enough disk space for the swap files.
  1412.  
  1413.        - "Couldn't make window!"  There was a memory allocation error when FAC
  1414.          tried to draw its window.  You probably don't have enough RAM to run
  1415.          FAC.
  1416.  
  1417.  
  1418.        Technical/Compatibility Notes
  1419.        -----------------------------
  1420.  
  1421.        Find Area Code runs on IBM PC compatibles (clones) using DOS 3.XX and
  1422.        4.01, and MS-DOS 5.0.  I'm pretty sure the program won't work with DOS
  1423.        2.X since 2.X handles paths differently.  It might work if you're in the
  1424.        same directory as the data file.
  1425.  
  1426.        FAC is "DESQview-aware" in the sense that it will disable direct-screen
  1427.        writing when it detects the presence of DESQview.  FAC runs well in a
  1428.        small (160K) DESQview window.
  1429.  
  1430.        FAC is written using Borland's Turbo Pascal 6.0.  One of the reasons the
  1431.        program searches so quickly is RLINE, Don Strenczewilk's excellent Turbo
  1432.        Pascal OOP text file handling unit.  RLINE allows you to define a "file
  1433.        of lines" object.  In addition, FAC can search at a rate of over 800
  1434.        lines per second on an XT with a slow hard disk, 2200 lines per second on
  1435.        a 386SX without caching and 3400 lines per second with caching!  Thanks
  1436.        to Don for graciously donating his code to the public domain!
  1437.  
  1438.  
  1439.        -------
  1440.        Page 24
  1441.         Find Area Code Documentation
  1442.        ----------------------------
  1443.  
  1444.        The excellent TSR swapping system and windowing comes from Object
  1445.        Professional 1.1 from TurboPower Software.  If you do any programming
  1446.        in Turbo Pascal 6.0, you owe it to yourself to use Object Pro!
  1447.  
  1448.  
  1449.        How to Reach the Author
  1450.        -----------------------
  1451.  
  1452.                      Michael K. Molloy
  1453.                      8531 East Dry Creek Place
  1454.                      Englewood, CO  80112
  1455.                      CIS: 72737,3237
  1456.  
  1457.        CompuServe Information Service (CIS) is the best place to reach me, but
  1458.        I also frequent the MicroManiac!, Tom Gettys' fantastic Wildcat BBS
  1459.        (303-673-9470) in Lafayette, CO.  I would be happy to provide electronic
  1460.        support there, if you wish.  His board should always have the latest
  1461.        version of Find Area Code (and hundreds of other fresh uploads!).
  1462.  
  1463.  
  1464.        Alternative Uses
  1465.        ----------------
  1466.  
  1467.        You may have thought to yourself as you used FAC, "Hmmm, if I can pop
  1468.        FAC up anywhere as a tiny TSR, and if I can change the contents of the
  1469.        FAC.DAT file and the external data file, why can't I put my own personal
  1470.        information into it and quickly and conveniently search for it when I
  1471.        need it?"  You can, and I hope you will.
  1472.  
  1473.        I think the ease of modifying FAC's database is a very valuable feature.
  1474.        In fact, one of the reasons I decided to write "yet another area code
  1475.        finder" was the frustration I had with the fact you couldn't modify,
  1476.        correct, update, or add to some of the other area code program data
  1477.        files.  My own personal use of FAC goes far beyond just using it to hunt
  1478.        down area codes.  Here's what I do.
  1479.  
  1480.        I have (you probably do, too if you're any kind of computer nut) a
  1481.        database of friends and relatives with which I maintain a quick reference
  1482.        phone list.  Periodically, I use my database program to generate a report
  1483.        which I print to disk.  The report looks something like this:
  1484.  
  1485.        John Doe            555-555-5555  1234 Anywhere St., Anyplace, CO  12345
  1486.        Joe's Software Shop     555-1234  (open 24 hours)
  1487.        Jay's Hardware Emporium 555-9876  (Closes at 6pm)
  1488.        Jim Smith               555-0000  (Keep trying; has teenagers on phone)
  1489.        ...
  1490.        (you get the idea)
  1491.  
  1492.        I use an editor to paste the ASCII information into the MY-DATA.DAT file
  1493.        and presto, I have a 7K popup database of our family and friends.
  1494.        It can be anywhere in the file, in any format, in any order since every
  1495.        character of the entire file is searched every time.
  1496.  
  1497.        Obviously, if you change the data file to reflect your own data, it
  1498.  
  1499.        -------
  1500.        Page 25
  1501.         Find Area Code Documentation
  1502.        ----------------------------
  1503.  
  1504.        could be used for almost anything.  Just remember, the program is
  1505.        line-oriented--all the information for one "record" must be on the same
  1506.        line.  Each line in the data file is limited to 119 characters.  If lines
  1507.        are longer than 119 characters, they'll be truncated when they are
  1508.        displayed.  The program will automatically wordwrap lines of up to 119
  1509.        characters when the "record" is displayed.
  1510.  
  1511.        I guess the way I use FAC makes it kind of a "poor man's personal
  1512.        information manager (PIM)".  I've found that FAC is far superior to LIST
  1513.        and other text file handling programs when it comes to ease of use,
  1514.        search speed, and the ability to be memory resident.
  1515.  
  1516.        FAC certainly isn't offered as any kind of free format database package,
  1517.        but I think it bridges an important gap between a full-blown database
  1518.        application and a tattered piece of paper taped above your computer desk.
  1519.        I think this capability gives FAC significant "value added."  I hope you
  1520.        agree and see another reason to support the program with your
  1521.        registration.
  1522.  
  1523.        Use your imagination!  If you come up with radical or useful new
  1524.        applications for Find Area Code "engine", please let me know.
  1525.  
  1526.  
  1527.        Final Remarks
  1528.        -------------
  1529.  
  1530.        Many thanks to my wife, Bobbea, for her friendship, love, and support in
  1531.        every aspect of my life.  Thanks to Tom Gettys and George Clifford for
  1532.        their valuable beta test feedback and for having the best BBSs in
  1533.        Colorado!  Thanks to members of the Association of Shareware
  1534.        Professionals, especially Paul Mayer and Bob Falk for advice on shareware
  1535.        and for some of the boilerplate text for my documentation.
  1536.  
  1537.        I've made every effort to provide the correct area codes and foreign
  1538.        country city codes.  If you find errors or additions, please let me know.
  1539.  
  1540.        NOTE: Your registration and support for this program will enable me to
  1541.        continue to develop FAC and add other valuable features in future
  1542.        versions:
  1543.  
  1544.            - Capability to set user defaults (colors/hotkey/etc.)
  1545.            - Extended "record" length
  1546.            - Mouse support?
  1547.            - You tell me.
  1548.  
  1549.        If FAC doesn't do what you think it should, or you'd like for it to do
  1550.        something else, I would be happy to develop a customized version of the
  1551.        program for anyone who wants one (for a reasonable fee).  I'd appreciate
  1552.        bug reports, new feature requests, comments, performance problems,
  1553.        constructive criticism, suggestions, additions, and/or corrections
  1554.        regarding Find Area Code.
  1555.  
  1556.  
  1557.  
  1558.  
  1559.        -------
  1560.        Page 26
  1561.         Find Area Code Documentation
  1562.        ----------------------------
  1563.  
  1564.                       Quick Reference List of FAC Switch Options
  1565.                       ------------------------------------------
  1566.  
  1567.              /A               When used with /I & disk swapping, don't use
  1568.                               hidden/system attributes on swap files
  1569.  
  1570.              /B               Don't use color screen attributes; use monochrome
  1571.                               (black & white) only
  1572.  
  1573.              /C               Use the normal (am/pm) clock format in the
  1574.                               on-screen clock (rather than the 24-hour format.
  1575.  
  1576.              /Dfilename.ext   Use the specified file name as the external data
  1577.                               file to search/add to
  1578.  
  1579.              /E               When used with /I, don't use Expanded Memory (EMS)
  1580.                               even if it's available; use disk swapping
  1581.  
  1582.              /F               Enables "fuzzy search" mode to find sound-alike,
  1583.                               approximate spellings
  1584.  
  1585.              /G               When used with /I, don't read text from screen on
  1586.                               popup
  1587.  
  1588.              /H               Show a help screen of options & descriptions
  1589.  
  1590.              /I               Loads popup/TSR with defaults:
  1591.                                 - Swap using EMS memory (or disk if no EMS)
  1592.                                 - Swapping messages on
  1593.                                 - Swap files have hidden/system attributes
  1594.                                 - Swap file path = same path FAC.DAT found on
  1595.                                 - Exploding windows on
  1596.                                 - AutoZoom is On
  1597.                                 - Read search string from screen
  1598.  
  1599.              /M               When used with /I, loads popup; suppresses
  1600.                               swapping messages
  1601.  
  1602.              /N               When used with /I, loads popup; no swapping
  1603.                               (instant popup mode, but requires 140K RAM)
  1604.  
  1605.              /Pc:\temp        When used with /I, loads popup: path for swap
  1606.                               files = c:\temp; Specify RAM disk if possible
  1607.  
  1608.              /T               Don't use the AutoZoom feature (automatically
  1609.                               zooms to full screen when necessary)
  1610.  
  1611.              /U               If installed as a TSR, unloads popup from memory,
  1612.                               if possible; deletes swap files
  1613.  
  1614.              /X               Don't use exploding windows
  1615.  
  1616.              /Z               Use a "zoomed" window which uses the full screen
  1617.  
  1618.  
  1619.        -------
  1620.        Page 27
  1621.